The SimpleMenu Component > FSimpleMenu.setButtonWidth()

 

FSimpleMenu.setButtonWidth()

Availability

Flash Player 6.

Usage

sm_instance.setButtonWidth(width)

Parameters

width - A number representing a pixel width.

Returns

Nothing.

Description

Sets the width of all the buttons on the SimpleMenu component.

Example

The following code increments the button width by one pixel:

sm.setButtonWidth(sm.getButtonWidth()++)

See also

FSimpleMenu.getButtonWidth